package com.java.oop;

public class Restaurant {
    public void service(Human human){
        System.out.println("大爷您来了，小的为您准备好了茶水了");
        human.eat();
    }


    public static void main(String[] args) {
        Restaurant restaurant = new Restaurant();
        Chinese chinese = new Chinese();
        American american = new American();
        Indian indian = new Indian();
        restaurant.service(chinese);
        restaurant.service(american);
        restaurant.service(indian);
    }
}
